csd: Fix an oversight for popups
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 Mar 2015 14:39:32 +0000 (10:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Mar 2015 14:41:10 +0000 (10:41 -0400)
After the recent rework of client-side shadow code, menus,
tooltips and similar popups were ending up with solid decorations.
Fix this oversight.

gtk/gtkwindow.c

index 05b11b5309d2a8d020df48248cafc5508c156cf2..22b0e54c13a586d4691365dae5c6ca207c5015e6 100644 (file)
@@ -5806,7 +5806,8 @@ create_decoration (GtkWidget *widget)
   GtkWindow *window = GTK_WINDOW (widget);
   GtkWindowPrivate *priv = window->priv;
 
-  if (!gtk_window_supports_client_shadow (window))
+  priv->use_client_shadow = gtk_window_supports_client_shadow (window);
+  if (!priv->use_client_shadow)
     return;
 
   gtk_window_enable_csd (window);